﻿using UnityEngine;
using System.Collections;

public class AnimationTouch : MonoBehaviour {
	Animator anim;
	bool play=false;
	// Use this for initialization
	void Start () {
		anim = GetComponent<Animator>();
	}

	public void PlayAnimation()
	{
		play = true;
	}

	// Update is called once per frame
	void Update () {
	if(play==true)
		{
			anim.SetBool("Play",true);
			play=false;
		}
	}
}
